package net.qhzw.admin.mapper;

import net.qhzw.admin.entity.SysRole;
import net.qhzw.admin.pojo.SysRoleVo;
import net.qhzw.admin.query.RoleQuery;

import java.util.List;

public interface SysRoleMapper {


    int deleteByPrimaryKey(String id);

    int insert(SysRole record);

    int insertSelective(SysRole record);

    SysRole selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(SysRole record);

    int updateByPrimaryKey(SysRole record);

    List<SysRole> selectRoleAll();


    /***
     * 根据主键id查询角色权限
     * @param id
     * @return
     */
    List<SysRoleVo> selectRoleVoList(RoleQuery query);


    Integer selectRoleVoTotal(RoleQuery query);


    List<SysRole> selectList(RoleQuery query);


}
